import 'package:flutter/cupertino.dart';
import 'package:flutter/material.dart';

class AspectRadioDemo extends StatelessWidget {
  @override
  Widget build(BuildContext context) {
    return Scaffold(
      appBar: AppBar(
        title: Text('AspectRadio'),
        centerTitle: true,
      ),
      body: Center(
        child: Container(
          width: 100,
          color: Colors.blue,
          child: AspectRatio(
            aspectRatio: 2.0/3.0,
            child: Container(
              color: Colors.yellow,
            ),
          ),
        ),
      ),
    );
  }
}
